package com.example.blog.service;

import com.example.blog.pojo.type;
import com.github.pagehelper.Page;
import org.apache.ibatis.javassist.NotFoundException;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface typeService {
    void saveType(type type);
    type getType(Integer id);
    type getType(String name);
    Page<type> listType();
    Page<type> list();
    void updateType(Integer id,String name) throws NotFoundException;
    void deleteType(Integer id);
    Integer getCount();
}
